﻿@model IEnumerable<IankerProj.Models.Thietbi>

@{
    ViewBag.Title = "Pin";
    Layout = "~/Views/Shared/TrangChu.cshtml";
}

<div class="wrap">
    <div class="block">
        <div class="position">Your Position: <a rel="nofollow" href="@Url.Action("Trangchu", "Home")">Trang chủ</a> <code>&gt;</code>Sản phẩm<code>&gt;</code>@ViewBag.ten</div>
        <div class="cut_line"><span class="left_line"></span><span class="right_line"></span></div><div class="sidebar">
            <div class="sidebox">
                <p class="sidebar_title">Hot Sellers</p>
                <div class="line"><span class="left_line"></span><span class="right_line"></span></div>
                <ul class="hot_list">
                    @Html.Action("Hotsale","Sanpham")
                 </ul>
            </div>
        </div>

        <script type="text/javascript">
            $(function () {
                $(".product_slider_color_ico").hover(function () {
                    var image = $(this).attr("imgpath");
                    var href = $(this).attr("href");
                    $(this).closest(".product_slider_item").find(".product_slider_item_pic a img").attr("src", image);
                    $(this).closest(".product_slider_item").find(".product_slider_item_pic a").attr("href", href);
                    $(this).closest(".product_slider_item").find(".product_slider_item_txt a").attr("href", href);
                }, function () {
                    return false;
                });
            });
        </script>
        <div class="mainbar clearfix">
            <div class="cat_banner_ad">
                <div id="slider" class="slider">
                    <ul>
                        <li><a onclick="_gaq.push(['_trackEvent', 'click', 'cat banner click', 'External Batteries']);" href="javascript:void(0)"><img src="/data/afficheimg/1374542811532256546.jpg" border="0" alt="External Batteries" /></a></li>

                        <li><a onclick="_gaq.push(['_trackEvent', 'click', 'cat banner click', 'external battery-2']);" href="javascript:void(0)"><img src="/data/afficheimg/1407353934889529963.jpg" border="0" alt="external battery-2" /></a></li>
                    </ul>
                </div>
            </div>
            
            
            <h2 class="main_sub_title">@ViewBag.ten</h2>
            <ul class="product_slider pslider_list">
                @foreach (var p in Model) { 
                <li class="product_slider_item">
                    <div class="product_slider_item_pic">
                       <a href="@Url.Action("Chitiet", "Sanpham", new { id=p.id})">
                           <img src="/img/@p.hinh" />
                       </a>
                            
                        
                    </div>
               
                    <div class="product_slider_item_txt">
                        <h3>@Html.ActionLink(@p.ten, "Chitiet", "Sanpham", new { id=p.id},null)</h3>
                    </div>
                </li>
                }
            </ul>
        </div>

    </div>
</div>

